﻿
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
    int shopManagerUserId = (int)ViewBag.ShopManagerUserId;
}

<style type="text/css">
    .table_search td {
        padding-right: 5px;
    }

        .table_search td:nth-child(even) {
            padding-right: 10px;
        }
</style>
<table class="table_search">
    <tr>
        <td>手机号码:</td>
        <td>
            <input type="text" class="layui-input" id="txtSearchPhone" maxlength="11"
                   style="width: 140px;" />
        </td>
        <td>姓名:</td>
        <td>
            <input type="text" class="layui-input" id="txtSearchName" maxlength="10"
                   style="width: 70px;" />
        </td>
        <td>邀请码:</td>
        <td>
            <input type="text" class="layui-input" id="txtSearchInvitationCode"
                   maxlength="6" style="width: 80px;" />
        </td>
        <td>推荐人:</td>
        <td>
            <input type="text" class="layui-input" id="txtSearchReference" maxlength="10"
                   style="width: 70px;" />
        </td>
        <td>推荐人邀请码:</td>
        <td>
            <input type="text" class="layui-input" id="txtSearchReferenceInvitationCode"
                   maxlength="6" style="width: 80px;" />
        </td>
        <td>
            <button type="button" id="btnSearch" class="layui-btn layui-btn-normal">
                <i class="layui-icon layui-icon-search"></i>查 询
            </button>
        </td>
        <td>
            <button type="button" id="btnViewStructure" class="layui-btn layui-btn-normal">
                <i class="layui-icon layui-icon-username"></i>查看架构
            </button>
        </td>
    </tr>
</table>

<style type="text/css">
    #UserTableContainer .layui-table-cell {
        height: 42px;
    }
</style>
<div style="margin-top: 10px;" id="UserTableContainer">
    <table class="layui-hide" id="User" lay-filter="user"></table>
</div>

<script type="text/html" id="tableToolBar">
    <a class="layui-btn layui-btn-sm layui-bg-blue" lay-event="tool-viewUserStructure" style="margin-left:2px;">查看架构</a>
    <a class="layui-btn layui-btn-sm" lay-event="tool-updateUser" style="margin-left:2px;">修改用户</a>
    <a class="layui-btn layui-btn-sm layui-bg-orange" lay-event="tool-resetPwd" style="margin-left:2px;">重设密码</a>
</script>

<script type="text/html" id="ViewUserStructureDlg">
    <form class="layui-form" style="padding: 10px;">
        <div></div>
    </form>
</script>

<style type="text/css">
    .updateDlgTable td {
        padding: 5px;
    }
</style>
<script type="text/html" id="UpdateUserInfoDlg">
    <form class="layui-form" style="padding: 10px;">
        <table class="updateDlgTable">
            <tr>
                <td align="right">手机号码:</td>
                <td>
                    <input class="layui-input" name="txt-updateUserDlg-phone" lay-verify="required|phone"
                           maxlength="11" lay-reqtext="请输入手机号码" lay-vertype="tips" />
                </td>
            </tr>
            <tr>
                <td align="right">姓名:</td>
                <td>
                    <input class="layui-input" name="txt-updateUserDlg-name" lay-verify="required|name"
                           maxlength="10" lay-reqtext="请输入姓名" lay-vertype="tips" />
                </td>
            </tr>
            <tr>
                <td align="right" style="height:30px;" valign="middle">&nbsp;&nbsp;</td>
                <td align="right" valign="middle">
                    <button class="layui-btn" lay-submit="" lay-filter="filter-updateUserDlg-ok">确定</button>
                </td>
            </tr>
        </table>
    </form>
</script>

<style type="text/css">
    .resetDlgTable {
        margin: 15px;
    }

        .resetDlgTable td {
            padding: 5px;
        }
</style>
<script type="text/html" id="ResetPwdDlg">
    <form class="layui-form" action="">
        <table class="resetDlgTable">
            <tr>
                <td align="right">原密码:</td>
                <td>
                    <input type="password" class="layui-input" lay-verify="required|pwd"
                           lay-vertype="tips" maxlength="20" id="txt-resetPwdDlg-pwd" lay-reqtext="请输入原密码">
                </td>
            </tr>
            <tr>
                <td align="right">新密码:</td>
                <td>
                    <input type="password" class="layui-input" lay-verify="required|pwd"
                           lay-vertype="tips" maxlength="20" id="txt-resetPwdDlg-newPwd" lay-reqtext="请输入新密码">
                </td>
            </tr>
            <tr>
                <td align="right">确认新密码:</td>
                <td>
                    <input type="password" class="layui-input" lay-verify="required|pwd|pwd2"
                           lay-vertype="tips" maxlength="20" id="txt-resetPwdDlg-newPwd2" lay-reqtext="请输入确认新密码">
                </td>
            </tr>
            <tr>
                <td align="right">&nbsp;&nbsp;</td>
                <td align="right">
                    <button class="layui-btn" lay-submit="" lay-filter="filter-resetPwdDlg-ok">确定</button>
                </td>
            </tr>
        </table>
    </form>
</script>
<input type="hidden" id="hdShopManagerUserId" value="@shopManagerUserId" />
<script type="text/javascript" src="~/Static/Js/user.js?rand=3456789"></script>